* lisp/emacs-lisp/pcase.el (pcase--if): Try to invert test to reduce depth.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 27 Feb 2011 02:50:38 +0000 (21:50 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 27 Feb 2011 02:50:38 +0000 (21:50 -0500)
commit347a6bb6df7286b879fb6b2c3953caef7f48cd04
tree3df04064ee7e59599d0b3f87291afe0f672aaacd
parenta327041d21958be00ed47e5ad978553d65eb13d4
* lisp/emacs-lisp/pcase.el (pcase--if): Try to invert test to reduce depth.
(pcase-mutually-exclusive-predicates): New var.
(pcase--split-consp, pcase--split-pred): Use it.
(pcase--split-equal, pcase--split-member): When splitting against
a pure predicate, run it to know the outcome.
(pcase--u1): Mark vars that are actually used.
(pcase--q1): Avoid introducing unused vars.
lisp/ChangeLog
lisp/emacs-lisp/pcase.el